<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link type="text/css" rel="stylesheet" media="all"
	href="../css/global.css" />
<link type="text/css" rel="stylesheet" media="all"
	href="../css/global_color.css" />
<style type="text/css">
	 .required{
		display:none;
	} 
</style>
<script type="text/javascript">
	function accountValidate(id){
		var acc=id.value;
		var account=/^\w{1,5}$/;
		if(account.test(acc)==false){
			document.getElementById("tishi1").style.display="inline";
		}
	}
	function passwordValidate(id){
		var psw=id.value;
		var password=/^\w{1,5}$/;
		if(password.test(psw)==false){
			document.getElementById("tishi2").style.display="inline";
		}
	}
</script>
</head>
<body class="index">
	<div class="login_box">
		<form action="login.do" method="post">
			<table>
				<tr>
					<td class="login_info">账号：</td>
					<td colspan="2"><input name="aaccount" type="text" id="account" class="width150" value="plf" onblur="accountValidate(this)"/></td>
					<td class="login_error_info"><span class="required" id="tishi1">30长度的字母、数字和下划线</span></td>
				</tr>
				<tr>
					<td class="login_info">密码：</td>
					<td colspan="2"><input name="apsw" type="password" value="123"
						class="width150" onblur="passwordValidate(this)"/></td>
					<td><span class="required" id="tishi2">30长度的字母、数字和下划线</span></td>
				</tr>
				<tr>
					<td class="login_info">验证码：</td>
					<td class="width70"><input name="" type="text" class="width70" /></td>
					<td><img src="../images/valicode.jpg" alt="验证码" title="点击更换" /></td>
					<td><span class="required">验证码错误</span></td>
				</tr>
				<tr>
					<td></td>
					<!-- <td class="login_button" colspan="2"></td> -->
					
					<td><input type="submit" value="" style="background:url(../images/login_btn.png);width:126px;height:42px" /></td>
					<td><span class="required">用户名或密码错误，请重试</span></td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>
